const _baseUrl = 'http://musicapi.duapp.com/api.php'
const _baseUrl2 = 'https://api.imjad.cn/cloudmusic/'
//const BaseUrl = 'http://www.yue.com/api/'
const BaseUrl = 'http://www.zhangu365.com/api/'
export default {

  getTemplate(biztype,page, pageSize){
    return BaseUrl + "scenem/gettemplate" + '?catid=' + biztype+ '&page='+page + '&pagesize=' + pageSize;
  },
  getScenepageBySceneID (sceneID) {

    return BaseUrl + 'scenem/getscenepage/sceneid/' + sceneID
  },
  getSceneBySceneID (sceneID) {

    return BaseUrl + 'scenem/getscenem/sceneid/' + sceneID
  },
  getScenepage() {

    return BaseUrl + 'scenem/savescenepage'
  },
  getScenepageimg() {

    return BaseUrl + 'scenem/savescenepage/img/1'
  },
  getRemovalattribute() {

    return BaseUrl + 'scenem/removalattribute'
  },
  //获取分类
  getCategorylist(type){

    return BaseUrl + 'scenem/getcategorylist?type=' + type;
  },

  getSysfile(type, biztype, page, pageSize){

    return BaseUrl + 'scenem/getsysfile?type=' + type + '&catid=' + biztype + '&page=' + page + '&pagesize=' + pageSize;
  },

  getUser(){
    return BaseUrl + 'user/getuser';
  },

  getMyPic(type, page, pageSize){

    return BaseUrl + 'user/getmypic/?type=' + type + '&page=' + page + '&pagesize=' + pageSize;
  },
  uploadPicType(type){
    return BaseUrl + 'upload/sysfile?type=' + type
  },
  uploadUpload(){
    return BaseUrl + 'upload/upload'
  },
  delFile(id){
    return BaseUrl + 'user/deletefile/?id=' + id
  },
  addNewPage(sceneid, pagenum){
    return BaseUrl + 'scenem/createscenepage/?sceneid=' + sceneid + '&pagenum=' + pagenum;
  },
  delPage(sceneid, pageid){
    return BaseUrl + 'scenem/deletescenepage/?sceneid=' + sceneid + '&pageid=' + pageid;
  },
  copyPage(sceneid, pageid){
    return BaseUrl + 'scenem/copyscenepage?sceneid=' + sceneid + '&pageid=' + pageid;
  },

  submitForm(){
    return BaseUrl + 'scenem/sceneform';
  },
  submitZan(){
    return BaseUrl + 'scenem/scenezan';
  },
  getZanCount(){
    return BaseUrl + 'scenem/getzancnt';
  },
  getUser(){
    return BaseUrl + 'user/getuser';
  },
  showPoster(sceneid){
    return BaseUrl + 'scenem/showposter/?sceneid=' + sceneid;
  }
}
